package com.sky.dto;

import lombok.Data;

import javax.validation.constraints.Digits;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

@Data
public class EmployeeDTO implements Serializable {

    private Long id;

    @NotEmpty
    private String username;

    @NotEmpty
    private String name;

    @Min(11)
    private String phone;

    private String sex;

    @Min(18)
    private String idNumber;

}
